package com.zjitc.pigspring.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("goods")
@Data
public class Goods {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("img")
    private String img;

    @TableField("description")
    private String description;

    @TableField("price")
    private Double price;

    @TableField("unit")
    private String unit;

    @TableField("count")
    private Integer count;

    @TableField("type_id")
    private Integer typeId;

    @TableField("seller_id")
    private Integer sellerId;

    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private String sellerName;
}
